package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.*;
import java.util.Date;

@Data
@Alias(value = "dmcWatchSafetyRange")
@Table(name = "cn_dmc_watch_safety_range")
@EqualsAndHashCode(callSuper = true)
public class DmcWatchSafetyRange extends BaseEntity {

    private static final long serialVersionUID = -5652516715635626866L;

    /**
     * 设备Id
     */
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 名称
     */
    private String name;

    /**
     * 开关 0-关 1-开
     */
    @Column(name = "is_open")
    private Integer isOpen;

    /**
     * 报警方式 0-进出 1-出去 2-进入
     */
    @Column(name = "alert_way")
    private Integer alertWay;

    /**
     * gps位置 纬度值|经度值
     */
    @Column(name = "gps_string")
    private String gpsString;

    /**
     * 位置
     */
    private String location;

    /**
     * 安全区域
     */
    @Column(name = "safety_range")
    private Integer safetyRange;

}